import shapefile


w = shapefile.Writer("shapefiles/del")
w.field('INT', 'N')
w.field('LOWPREC', 'N', decimal=2)
w.field('MEDPREC', 'N', decimal=10)
w.field('HIGHPREC', 'N', decimal=30)
w.field('FTYPE', 'F', decimal=10)
w.field('LARGENR', 'N', 101)
nr = 1.3217328
w.null()
w.null()
w.record(INT=nr, LOWPREC=nr, MEDPREC=nr, HIGHPREC=-3.2302e-25, FTYPE=nr, LARGENR=int(nr)*10**100)
w.record(INT=-nr, LOWPREC=-nr, MEDPREC=-nr, HIGHPREC=3.2302e-25, FTYPE=-nr, LARGENR=-int(nr)*10**100)
w.close()

r = shapefile.Reader("shapefiles/del")
print(r)
print(r.record(0))
print(r.record(1))
r.close()

